//
//  YHButton.h
//  HTP
//
//  Created by admin on 15/10/29.
//  Copyright © 2015年 nit. All rights reserved.
//

#import <UIKit/UIKit.h>
@protocol YHButtondelegate ;

@interface YHButton : UIView{
    NSString                *_groupId;
    BOOL                    _isSelect;
    id<YHButtondelegate>    _delegate;
}
@property (nonatomic,assign) id<YHButtondelegate>   delegate;
@property (nonatomic,copy,readonly) NSString        *groupId;
@property (nonatomic,assign)BOOL                    isSelect;
-(id)initWithDelegate:(id)delegate groupId:(NSString *)groupId buttonImage:(NSString *)image unSelectImage:(NSString *)unSelectImage title:(NSString *)title withFrame:(CGRect) frame;

-(void)setBackSelected;
@end
@protocol YHButtondelegate <NSObject>
@optional
-(void)didSelectYHButton:(YHButton *)button groupId:(NSString *)groupId;

@end
